package A1_4_Shopsystem;

// 支付宝支付
public class AliPay extends Payment {
    private String number;

    public AliPay(double amount, Order order, String number) {
        super(amount, order);
        this.number = number;
    }

    @Override
    public boolean processPayment() {
        // 支付宝支付逻辑
        System.out.println("Processing AliPay payment with account: " + number);
        return true;
    }

    // Getter 方法
    public String getNumber() {
        return number;
    }
}
